package com.gopay.commons.validator.check;

import com.gopay.commons.validator.form.Field;

/**
 * 统一验证类，由子类的validator方法来实现，execute方法统一调度
 * 
 * @DefaultValidator.java
 * @author yaobo
 * @2012-12-26 上午09:55:51 www.gopay.com.cn Inc.All rights reserved.
 */
public abstract class DefaultValidator {
    protected abstract boolean validator(Field field);

    public boolean execute(Field field) {
        return validator(field);
    }
}
